package com.ruoyi.net.domain;

import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 网元-接口-trunk主接口/子接口对象 element_port_trunk_sub
 * 
 * @author tony
 * @date 2024-11-29
 */
public class ElementPortTrunkSub extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private String id;

    /**
     * trunk id
     */
    @Excel(name = "trunk id")
    @ApiModelProperty(value = "trunk id")
    private String trunkId;

    /**
     * 网元id
     */
    @Excel(name = "网元id")
    @ApiModelProperty(value = "网元id")
    private String elementId;

    /**
     * 子接口名
     */
    @Excel(name = "子接口名")
    @ApiModelProperty(value = "子接口名")
    private String lagName;

    /**
     * 端口
     */
    @Excel(name = "端口")
    @ApiModelProperty(value = "端口")
    private String terminalName;

    /**
     * 端口标注
     */
    @Excel(name = "端口标注")
    private String terminalLabel;

    /**
     * 端口使能
     */
    @Excel(name = "端口使能")
    private String terminalEnable;

    /**
     * 子接口号
     */
    @Excel(name = "子接口号")
    @ApiModelProperty(value = "子接口号")
    private String lagId;

    /**
     * 端口模式
     */
    @Excel(name = "端口模式")
    @ApiModelProperty(value = "端口模式")
    private String terminalMode;

    /**
     * 接口描述
     */
    @Excel(name = "接口描述")
    @ApiModelProperty(value = "接口描述")
    private String portDesc;

    /**
     * MPLS使能
     */
    @Excel(name = "MPLS使能")
    @ApiModelProperty(value = "MPLS使能")
    private String mplsEnable;

    /**
     * 接入类型
     */
    @Excel(name = "接入类型")
    @ApiModelProperty(value = "接入类型")
    private String accessType;

    /**
     * 最大帧长度(bytes)
     */
    @Excel(name = "最大帧长度(bytes)")
    private String maxFrameLen;

    /**
     * 封装方式
     */
    @Excel(name = "封装方式")
    @ApiModelProperty(value = "封装方式")
    private String packageType;

    /**
     * VLAN ID
     */
    @Excel(name = "VLAN ID")
    @ApiModelProperty(value = "VLAN ID")
    private String vlanId;

    /**
     * 条目状态（0未激活 1已激活）
     */
    @Excel(name = "条目状态", readConverterExp = "0=未激活,1=已激活")
    @ApiModelProperty(value = "条目状态")
    private String status;

    /**
     * 删除标记（0正常 2删除）
     */
    private String delFlag;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setTrunkId(String trunkId) {
        this.trunkId = trunkId;
    }

    public String getTrunkId() {
        return trunkId;
    }

    public void setElementId(String elementId) {
        this.elementId = elementId;
    }

    public String getElementId() {
        return elementId;
    }

    public void setLagName(String lagName) {
        this.lagName = lagName;
    }

    public String getLagName() {
        return lagName;
    }

    public void setTerminalName(String terminalName) {
        this.terminalName = terminalName;
    }

    public String getTerminalName() {
        return terminalName;
    }

    public void setLagId(String lagId) {
        this.lagId = lagId;
    }

    public String getLagId() {
        return lagId;
    }

    public void setTerminalMode(String terminalMode) {
        this.terminalMode = terminalMode;
    }

    public String getTerminalMode() {
        return terminalMode;
    }

    public void setPortDesc(String portDesc) {
        this.portDesc = portDesc;
    }

    public String getPortDesc() {
        return portDesc;
    }

    public void setMplsEnable(String mplsEnable) {
        this.mplsEnable = mplsEnable;
    }

    public String getMplsEnable() {
        return mplsEnable;
    }

    public void setPackageType(String packageType) {
        this.packageType = packageType;
    }

    public String getPackageType() {
        return packageType;
    }

    public void setVlanId(String vlanId) {
        this.vlanId = vlanId;
    }

    public String getVlanId() {
        return vlanId;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public String getAccessType() {
        return accessType;
    }

    public void setAccessType(String accessType) {
        this.accessType = accessType;
    }

    public String getMaxFrameLen() {
        return maxFrameLen;
    }

    public void setMaxFrameLen(String maxFrameLen) {
        this.maxFrameLen = maxFrameLen;
    }

    public String getTerminalLabel() {
        return terminalLabel;
    }

    public void setTerminalLabel(String terminalLabel) {
        this.terminalLabel = terminalLabel;
    }

    public String getTerminalEnable() {
        return terminalEnable;
    }

    public void setTerminalEnable(String terminalEnable) {
        this.terminalEnable = terminalEnable;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("trunkId", getTrunkId())
                .append("elementId", getElementId())
                .append("lagName", getLagName())
                .append("terminalName", getTerminalName())
                .append("lagId", getLagId())
                .append("terminalMode", getTerminalMode())
                .append("portDesc", getPortDesc())
                .append("mplsEnable", getMplsEnable())
                .append("terminalLabel", getTerminalLabel())
                .append("terminalEnable", getTerminalEnable())
                .append("accessType", getAccessType())
                .append("maxFrameLen", getMaxFrameLen())
                .append("packageType", getPackageType())
                .append("vlanId", getVlanId())
                .append("status", getStatus())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}